//
//  LRGuessTableViewCell.m
//  本地生活圈
//
//  Created by admin on 15/8/14.
//  Copyright (c) 2015年 懒人. All rights reserved.


#import "LRGuessTableViewCell.h"

@interface LRGuessTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UILabel *intro;
@property (weak, nonatomic) IBOutlet UILabel *price;
@property (weak, nonatomic) IBOutlet UILabel *distace;


@end

@implementation LRGuessTableViewCell

- (void)awakeFromNib {
    // Initialization code
    

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setList:(LRGuessListModel *)list
{
    _list = list;
    [self.icon sd_setImageWithURL:[NSURL URLWithString:list.cover]];
    self.title.text = list.title;
    self.intro.text = list.intro;
    self.price.text = [NSString stringWithFormat:@"￥%@",list.price];
    self.distace.text = [NSString stringWithFormat:@"距离%dkm",rand() % 10];
}

@end
